{{define "demo01/index.html"}}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style src="/s/js/jquery-3.7.1.min.js"></style>
    <script src="/s/js/jQuery.min.js"></script>
</head>
<body>
    (1) 通过ajax上传需要添加上传附件 属性multiple="multiple"
    (2)需要引入jquery对应的包


    <form action="/FromUpFile" method="post" >
        <input type="file" class="myfile" multiple="multiple">
        <input type="button" value="提交" id="btn">
    </form>

    <script>
       var btntext = document.getElementById("btn")
       btntext.onclick = function(){
           console.log($(".myfile"));
       }



    </script>

</body>
</html>
{{end}}